﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Entities;
using System.IO;
using System.Web;
using System.Security.Permissions;
namespace WCF_ListenMusic.Services.Module_Song.User
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISongService" in both code and config file together.
    [ServiceContract]
    public interface ISongService
    {
        [OperationContract]      
        [TransactionFlow(TransactionFlowOption.Mandatory)]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFUser")]
        bool UploadSong(Song s);
        [OperationContract]
        int getMax_SongID();
        [OperationContract]
        [PrincipalPermission(SecurityAction.Demand, Role = "WCFUser")]
        bool UpdateLyrics(int songid,string lyrics);

    }
}
